------------------------------------------
---Nuevo Campo tipocom en ctepagosglob ---
------------------------------------------

alter TABLE ctepagosglob
add column tipocom character varying(4),
add CONSTRAINT gestion_ai_comctepagosglob FOREIGN KEY (tipocom)
    REFERENCES com (tipo) MATCH SIMPLE
    ON UPDATE NO ACTION ON DELETE RESTRICT;

COMMENT ON COLUMN ctepagosglob.tipocom IS 'Tipo de Comprobante para el que se usa esa condicion de Pago Global';

-- =====================================
SELECT aaversion('409.03');
-- =====================================

    

